﻿<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  
                xml:lang="ja" xmlns:g="http://www.w3.org/2005/Atom"
                xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' 
                xmlns:gd='http://schemas.google.com/g/2005'
                exclude-result-prefixes="g openSearch gd" >
  <xsl:output method="xml" encoding="UTF-8" />
  <xsl:template match="/">
    <FMPXMLRESULT xmlns="http://www.filemaker.com/fmpxmlresult">
      <!-- xmlns="http://www.filemaker.com/fmpxmlresult"-->
      <ERRORCODE>0</ERRORCODE>
      <PRODUCT BUILD="" NAME="" VERSION="" />
      <DATABASE DATEFORMAT="M/d/yyyy" LAYOUT="" NAME="" RECORDS="" TIMEFORMAT="h:mm:ss a" />
      <METADATA>
        <FIELD EMPTYOK="YES" MAXREPEAT="1" NAME="title" TYPE="TEXT" />
        <FIELD EMPTYOK="YES" MAXREPEAT="1" NAME="startTime" TYPE="TEXT" />
      </METADATA>
      <RESULTSET>
        <xsl:attribute name="FOUND">
          <xsl:value-of select="g:feed/openSearch:totalResults" />
        </xsl:attribute>
        <xsl:for-each select="g:feed/g:entry">
          <ROW>
            <xsl:attribute name="MODID">0</xsl:attribute>
            <xsl:attribute name="RECORDID">
              <xsl:value-of select="position()" />
            </xsl:attribute>
            <COL>
              <DATA>
                <xsl:value-of select="g:title" />
              </DATA>
            </COL>
            <COL>
              <DATA>
                <xsl:value-of select="translate(gd:when/@startTime, '-', '/')" />
              </DATA>
            </COL>
          </ROW>
        </xsl:for-each>

      </RESULTSET>
    </FMPXMLRESULT>
  </xsl:template>
</xsl:stylesheet>
